package com.tansun.easycare.rule.common.model;

/**
 * 流程设计器，节点模型 下拉框 保存对象
 *
 * @author ZengWenfeng
 */
public class SelectEditorVo implements Comparable {
    /**
     * 模型名
     **/
    private Object name;
    /***模型编号***/
    private Object value;
    private Double version;
    private String manageId;
    
    public SelectEditorVo() {

    }

    public SelectEditorVo(Object name, Object value) {
        this.name = name;
        this.value = value;
    }
    public SelectEditorVo(Object name, Object value, Double version) {
        this.name = name;
        this.value = value;
        this.version = version;
    }
    public SelectEditorVo(String manageId,Object name, Object value, Double version) {
    	this.manageId = manageId;
        this.name = name;
        this.value = value;
        this.version = version;
    }

    public Object getName() {
        return name;
    }

    public void setName(Object name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Double getVersion() {
        return version;
    }

    public void setVersion(Double version) {
        this.version = version;
    }

    public String getManageId() {
		return manageId;
	}

	public void setManageId(String manageId) {
		this.manageId = manageId;
	}

	@Override
    public int compareTo(Object o) {
        // TODO Auto-generated method stub
        SelectEditorVo obj = (SelectEditorVo) o;
        return this.version.compareTo(obj.getVersion());
    }
}